import router from './router'
import ElementPlus from 'element-plus'
// 引入全局样式
import '@/styles/index.less'
import 'element-plus/dist/index.css'
import 'animate.css'

import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 引入状态管理
import { setupStore } from '@/store'

import { createApp } from 'vue'
import App from './App.vue'

const setupAll = () => {
  const app = createApp(App)
  setupStore(app)
  app.use(router)
  app.use(ElementPlus, { locale: zhCn })
  app.mount('#app')
}

setupAll()
